<template>
  <div class="noticebar" :style="{ background : background }">
  
  </div>
</template>

<script>
export default {
  data () {
    return {
      background: '#FFF'
    }
  },
  watch: {
    '$route': function (val) {
      val.meta.background ? this.background = val.meta.background : this.background = '#FFF'
    }
  },
  methods: {

  },
  created () {

  }
}
</script>

<style scoped lang="less">
.noticebar {
  height: 10px;
  width: 100%;
}
</style>
